import request from '@/utils/request'

export function getTreeApi(data) {
    return request({
        url: '/api/attachment.category/getTree',
        method: 'post',
        data: data
    })
}


export function createCategoryApi(data) {
    return request({
        url: '/api/attachment.category/create',
        method: 'post',
        data: data
    })
}

export function saveCategoryApi(data) {
    return request({
        url: '/api/attachment.category/save',
        method: 'post',
        data: data
    })
}


export function deleteCategoryApi(data) {
    return request({
        url: '/api/attachment.category/delete',
        method: 'post',
        data: data
    })
}

